<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let num = Math.pow(2,53);
        let num2 = Math.pow(2,53)+1;

        console.log(num);
        console.log(num2);

        let num3 = BigInt(2**53);
        let num4 = BigInt(2**53)+BigInt(1);

        console.log(num3);
        console.log(num4);

        console.log(typeof num3);

        let num5 = 2**1023;
        let num6 = BigInt(2**1023);

        console.log(num5 === num6);
        console.log(num5 == num6);

        let num7 = 2**1024;
        // let num8 = BigInt(2**1024);

        console.log(num5);
        console.log(num6);

        console.log(num7);
        // console.log(num8);


        // bigInt -> number
        let bigNum = BigInt(123);
        let num9 = Number(bigNum); 
        console.log(bigNum);
        console.log(num9);

        // number - >bigInt
        let num10 = 10;
        let bigNum2 = BigInt(num10);
        console.log(bigNum2);
        console.log(num10);



    </script>
</body>
</html>